#!/usr/bin/python

import sys
from Bio import Entrez
from Bio import SeqIO

Entrez.email = "jimmysaw@gmail.com"

query = sys.argv[1]

handle = Entrez.efetch(db="protein", id=query, rettype="fasta")

record = SeqIO.read(handle, "fasta")

print ">" + record.id
print record.seq

handle.close()


